# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-redmine
_pkgname=python-redmine
pkgver=2.4.0
pkgrel=3
pkgdesc="A simple library for communicating with redmine"
url="https://github.com/maxtepkeev/python-redmine"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	assertEquals.patch
	"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-redmine" # Backwards compatibility
provides="py-redmine=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
afb03ca8a3bdacace3c12b7295ba08953ab2040971b57988deb9955df24e5ac1782a9b3fbf0f5070eb22c640e88f489cda12cdec38449f9e3bcf7189dc422642  python-redmine-2.4.0.tar.gz
7da14671b170863796bf5f9f44b1e7e104d53e7f97d3e251f47bf3de13d6a0ec2e9baa37693230d0ffa2bb8f595dfc97099ffdbf8b0635b4f8dc8852b9684d6e  assertEquals.patch
"
